/* stylelint-disable at-rule-no-unknown,font-family-no-missing-generic-family-keyword */
@import "../themes/variable";

@mixin iconfont-mixin() {
  display: inline-block;
  font-style: normal;
  vertical-align: baseline;
  text-align: center;
  text-transform: none;
  line-height: 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  &:before {
    display: block;
    font-family: "anticon" !important;
  }
}

@mixin iconfont-font($content) {
  font-family: 'anticon';
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  content: $content;
}

// for iconfont font size
// fix chrome 12px bug, support ie
@mixin iconfont-size-under-12px($size, $rotate: 0deg) {
  display: inline-block;
  $font-scale: ($size / 12);
  font-size: 12px;
  // IE9
  font-size: #{$size}#{"px\9"}; // lesshint duplicateProperty: false
  transform: scale($font-scale) rotate($rotate);
  :root & {
    font-size: $font-size-sm; // reset IE9 and above
  }
}
